// Package dao
// Copyright 2016-2023 chad.wang<chad.wang@icloudsky.com>. All rights reserved.
package dao

import (
	"context"
	"github.com/marcellowy/go-common/gogf/db"
	"gorm.io/gorm"
)

var Db *gorm.DB

// NewConnect 新建连接
func NewConnect(ctx context.Context) *gorm.DB {
	if Db == nil {
		Db = db.NewConnect(ctx, "database")
	}
	return Db
}
